package net.ifilm.dao;

import com.ibatis.sqlmap.client.SqlMapClient;
import net.ifilm.entity.SiteApply;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author wangjunneil@gmail.com
 */
@Repository
public class SiteApplyDao extends BaseDao {
    
    @Autowired
    public void setSqlMapClientOverride(SqlMapClient sqlMapClient) {
        super.setSqlMapClient(sqlMapClient);
    }

    // ---------------------------------------------------------------------------------------- business method

    /**
     * 根据给出的条件查询对应的接入申请
     *
     * @return
     */
    public List<SiteApply> queryApplySite(Map<String, Object> parameter) {
        return super.queryForList("queryApplySite", parameter);
    }

    /**
     * 增加一条接入申请
     *
     * @param siteApply
     * @return
     */
    public void addSiteApply(SiteApply siteApply) {
        super.insert("addSiteApply", siteApply);
    }

} ///:~
